<template>
  <el-scrollbar style="height: 100%">
    <pre v-copyText="codeStr" style="cursor: pointer;" title="单击鼠标可复制代码">{{codeStr}}</pre>
  </el-scrollbar>
</template>
 
<script setup>
const props = defineProps({
  codeStr: {
    type: String,
    default: ""
  }
});
</script>
